package com.right.db;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * <pre>
 *     @author : Tuo
 *     e-mail : 839539179@qq.com
 *     time   : 2018/12/27 15:08
 *     desc   : 自行车定位表
 *     version: 1.0
 * </pre>
 */

@Data
@Table(name = "bicycle_location")
@ApiModel(value = "com.right.db.BicycleLocation")
public class BicycleLocation {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "null")
    private Long id;

    /* 锁Id*/
    @ApiModelProperty(value = "锁Id")
    private Long lock_id;

    /* 创建时间*/
    @ApiModelProperty(value = "创建时间")
    private Date created_at;

    /* gps经度*/
    @ApiModelProperty(value = "gps经度")
    private Double gpsLongitude;

    /* gps纬度*/
    @ApiModelProperty(value = "gps纬度")
    private Double gpsLatitude;

    /* 状态*/
    @ApiModelProperty(value = "-1 不正常 1 正常 ")
    private Integer status;

}
